home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 (Walnut Creek) / Aminet - June 1993 [Walnut Creek].iso / aminet / misc / amag / sh9301e.lha / Maxon-CPP-Demo / Include / time.h < prev   
C/C++ Source or Header  |  1993-02-17  |  541b  |  27 lines

  1. #ifndef _INCLUDE_TIME_H
  2. #define _INCLUDE_TIME_H
  3.  
  4. typedef unsigned time_t;
  5. typedef unsigned clock_t;
  6.  
  7. struct tm
  8. { int tm_sec, tm_min, tm_hour, tm_mday, tm_mon, tm_year,
  9.       tm_wday, tm_yday, tm_idst;
  10. };
  11.  
  12. time_t time(time_t*);
  13. struct tm *gmtime(const time_t*);
  14. struct tm *localtime(const time_t*);
  15. time_t mktime(struct tm*);
  16.  
  17. #define CLOCKS_PER_SEC 50
  18. clock_t clock(void);
  19. double difftime(time_t, time_t);
  20.  
  21. int strftime(char *, unsigned, const char*, const struct tm*);
  22. char *asctime(const struct tm*);
  23. char *ctime(const time_t *);
  24.  
  25. #endif
  26.  
  27.